from collections import Iterable
from collections import Iterator
arr = [1,2,3,4,5]
print(isinstance(arr, Iterable))

a = (x for x in arr);
print(isinstance(a, Iterator))
print(next(a))
print(next(a))
print(next(a))